﻿
@{
    ViewBag.Title = "EmployeePageList";
    Layout = "~/Views/Shared/_LayoutMain.cshtml";
}
@section css{
    <link rel="stylesheet" href="~/assets/portal/assets/css/common.css" />
    <link rel="stylesheet" href="~/bussiness/js/base/reset.css" />
    <link rel="stylesheet" href="~/bussiness/js/pg/Performance/edit.css" />
    <style>

        #editor—wrapper {
            width: 90%;
            border: 1px solid #ccc;
            z-index: 100; /*  按需定义 */
        }

        #toolbar-container {
            border-bottom: 1px solid #ccc;
        }

        #editor-container {
            min-height: 310px;
   
            margin-bottom: 200px;
        }
            #editor-container .title::before{
                content:""
            }
            .ant-select-arrow, .ant-select-clear {
                position: absolute;
                right: 10px;
            }

        .stitle {
            font-size: 16px;
            font-weight: 600;
            color: #424758;
            display: flex;
            align-items: center;
        }

            .stitle::before {
                content: "";
                margin-right: 10px;
                display: inline-block;
                width: 4px;
                height: 18px;
                background: #0064E5;
            }

        .stable {
            border-collapse: collapse; /* 折叠边框，使之变为单一线划分 */
            border: 1px solid #e1e5ea; /* 设置表格、表头、单元格边框 */
            width: 100%;
            margin-top: 20px;
            max-height: 800px;
            overflow-y: scroll;
        }

            .stable th {
                background: #f2f6f9;
                font-size: 14px;
                font-weight: 600;
            }

            .stable th, .stable td {
                border: 1px solid #e1e5ea; /* 设置表格、表头、单元格边框 */
                text-align: center;
                height: 48px;
            }
    </style>
}
<div id="PerformancePlanAddNew" class="font-['SourceHanSansSC']">
    <a-style-provider hash-priority="high">
        <a-config-provider :locale="vlocale">
            <a-image :width="200"
                     :style="{ display: 'none',zIndex:100 }"
                     :preview="{visible:PerformancePlanAddNewParams.previewShow.value,onVisibleChange:PerformancePlanAddNewParams.setVisible}" :src="PerformancePlanAddNewParams.imgUrl.value"></a-image>
            <m-pdf-pop-model></m-pdf-pop-model>
            <header class="px-5 box-border">
                <div class="flex items-center">
                    <div class="w-full h-[48px] text-[13px]  rounded-lg mx-auto my-[10px]  bg-white  text-[#888888] text-3xl flex items-center px-10">   <div class="w-22 h-22 bg-blue-200 mr-5"> <img class="w-full h-full cursor-pointer" v-on:click="PerformancePlanAddNewParams.vvback()" src="~/Assets/nimgs/exit.png" alt="返回" /></div> <span class="text-[]">首页<span class="mx-2">/</span>履职考核<span class="mx-2">/</span><span class="text-[#424758] text-[15px]">{{PerformancePlanAddNewParams.urlinfo.value.optype?'考核计划通知详情':'新增考核计划通知'}}</span> </span>  </div>
                </div>

                <a-card :bordered="true" class="w-full  mt-12">
                    <template #title>
                        <div class="w-full flex justify-between items-center;" style="background: #fafafa">
                            <div class="flex items-center"> <div>考核计划通知</div> <div class="ml-7"></div></div>
                        </div>
                    </template>
                    <a-spin :spinning="PerformancePlanAddNewParams.uploadLock.value" tip="加载中，请耐心等待..." />
                    <div class="stitle">通知信息</div>
                    <a-form style="margin-top:20px"
                            :model="PerformancePlanAddNewParams.formData.value">
                        <a-form-item label="起止时间">

                            <a-range-picker :disabled="PerformancePlanAddNewParams.urlinfo.value.optype" v-model:value="PerformancePlanAddNewParams.formData.value.Time" :format="['YYYY-MM-DD', 'YYYY-MM-DD']" />
                        </a-form-item>

                        <a-form-item label="通知标题：">
                            <a-input placeholder="请输入通知标题" :disabled="PerformancePlanAddNewParams.urlinfo.value.optype" v-model:value="PerformancePlanAddNewParams.formData.value.Title" style="max-width:80%;min-width:290px;width:auto" />
                        </a-form-item>

                        <a-form-item label="通知部门：">
                            <a-select allow-clear
                                      mode="multiple"
                                      placeholder="请选择部门"
                                      show-search
                                      :disabled="PerformancePlanAddNewParams.urlinfo.value.optype"
                                      :filter-option="PerformancePlanAddNewParams.filterOption"
                                      v-model:value="PerformancePlanAddNewParams.formData.value.DepartmentIds"
                                      :options="PerformancePlanAddNewParams.deptList.value"
                                      style="max-width:80%;min-width:290px;width:auto">

                            </a-select>
                            <a-button type="primary" v-if="!PerformancePlanAddNewParams.urlinfo.value.optype" v-on:click="PerformancePlanAddNewParams.allChoose" style="margin-left:20px">{{PerformancePlanAddNewParams.isAll.value?'取消全选':'全选'}}</a-button>
                        </a-form-item>
                        <a-form-item label="备注：">
                            <a-textarea style="width:600px" :disabled="PerformancePlanAddNewParams.urlinfo.value.optype" v-model:value="PerformancePlanAddNewParams.formData.value.Remark">

                            </a-textarea>
                        </a-form-item>


                    </a-form>
                    <div class="stitle" style="margin:20px 0">通知内容</div>

                    <div id="editor—wrapper">
                        <div id="toolbar-container"><!-- 工具栏 --></div>
                        <div id="editor-container">

                            <!-- 编辑器 -->

                        </div>
                    </div>
                    <div class="stitle" style="margin:20px 0">附件</div>


                    <a-form-item label="附件：">

                        <a-upload v-model:file-list="PerformancePlanAddNewParams.uploadImg.value.fileList"
                                  action="#"
                                  :item-render="PerformancePlanAddNewParams.itemRender.value"
                                  v-on:change="PerformancePlanAddNewParams.handleChange">

                            <a-button v-if="PerformancePlanAddNewParams.uploadImg.value.fileList.length < 8&&!PerformancePlanAddNewParams.urlinfo.value.optype" type="primary">+ 上传附件</a-button>

                        </a-upload>
                    </a-form-item>


                </a-card>
            </header>
            <m-bottom-btns></m-bottom-btns>
        </a-config-provider>
    </a-style-provider>
</div>
@section Js{
    <script src="~/bussiness/js/pg/Performance/edit.js"></script>
    <script src="~/bussiness/js/base/tailwind.js"></script>
    <script>
    </script>
    <script type="module">
        import Composition from '../../bussiness/js/pg/Performance/PerformancePlanAddNew.js?v=@DateTime.Now.ToString("yyyyMMddHHmm")'
        import localeValues from '../../Bussiness/js/base/es/locale/zh_CN.js'
        singalApp('PerformancePlanAddNew', Composition, localeValues)
    </script>
}
